import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "ByTsx",
    component: () => import(/* webpackChunkName: "ByTsx" */ "@/views/ByTsx"),
  },
  {
    path: "/ByTemplate",
    name: "ByTemplate",
    component: () =>
      import(/* webpackChunkName: "ByTemplate" */ "@/views/ByTemplate.vue"),
  },
  {
    path: "/BySetup",
    name: "BySetup",
    component: () =>
      import(/* webpackChunkName: "BySetup" */ "@/views/BySetup.vue"),
  },
  {
    path: "/ByScriptSetup",
    name: "ByScriptSetup",
    component: () =>
      import(/* webpackChunkName: "BySetup" */ "@/views/ByScriptSetup.vue"),
  },
  {
    path: "/CustomDirectiveAndPlugins",
    name: "CustomDirectiveAndPlugins",
    component: () =>
      import(
        /* webpackChunkName: "CustomDirectiveAndPlugins" */ "@/views/CustomDirectiveAndPlugins.vue"
      ),
  },
  {
    path: "/TestPlugins",
    name: "TestPlugins",
    component: () =>
      import(/* webpackChunkName: "TestPlugins" */ "@/views/TestPlugins.vue"),
  },
  {
    path: "/ByPinia",
    name: "ByPinia",
    component: () =>
      import(/* webpackChunkName: "ByPinia" */ "@/views/ByPinia.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
